@import '~antd/es/style/themes/default.less';
:global{
  .ant-spin-container.ant-spin-blur{
    overflow: initial;
  }
}
.site_layout_background{
  background: #fff;
  margin: 24px 16px 0;
  padding: 24px;
  min-height: 280px;
  h4{
    font-size: 16px;
  }
  
  .description{
    :global{
      .ant-form-item-control-input-content{
        &::after{
          display: block;
          color: rgba(0,0,0,.45);
          text-align: right;
          content: attr(data-count);
        }
      }
    }  
  }
}
.playInterval{
  display: flex;
    :global{
      .content{
        height: calc(100vh - 400px);
        min-height: calc((100vw - 208px - 11rem - 304px)/5 + 7.5rem + 2px);
        padding: 1rem;
        overflow: auto;
        border: 1px solid#d9d9d9;
        box-shadow: 0 2px 6px 0#d9d9d9;
        &::-webkit-scrollbar{
          width: 4px;
          height:4px;
          background-color: transparent;
          box-shadow: 5px 5px 25px 0 rgba(217,217,217,.1);
        }
        &::-webkit-scrollbar-thumb {
            box-shadow: inset 0 0 6px rgba(217,217,217,.3);
            background-color:  rgba(217,217,217,.9);
        }
        &::-webkit-scrollbar-track {
            box-shadow: inset 0 0 6px rgba(217,217,217,.3);
            background-color: transparent;
        }
      }
      .left{
        width: 304px;
        color: #1890ff;
        ul{
          padding: 0;
          margin: 0;
          li{
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid #d9d9d9;
            &.selected{
              box-shadow: 0 2px 4px 0 rgba(0,0,0,.5);
            }
            &.error{
              box-shadow: 0px 0px 4px 2px rgba(255, 0, 0, 0.5);
            }
            div{
              position: relative;
              time{
                display: block;
                margin-top: 5px;
                span{
                  margin-bottom:8px;
                }
                .ant-row{
                  .label{
                    flex:1;
                  }
                  .list{
                    flex:4;
                  }
                }
              }
              .control{
                position: absolute;
                right: 0;
                top: 0;
                a{
                  margin-left: 1rem;
                }
              }
            }
          }
        }
        .add{
          cursor: pointer;
          margin: 1rem 0;
          width: 100%;
          height: 95px;
          text-align: center;
          line-height: 95px;
          border: 2px dashed #dadada;
          border-radius: 5px;
          color: #dadada;
        }
      }
      .right{
        flex: 1 1;
        margin-left: 1rem;
        ul{
          overflow: hidden;
          margin: 0;
          padding: 0;
          li{
            float: left;
            position: relative;
            width: calc((100vw - 208px - 11rem - 407px)/5);
            height: calc((100vw - 208px - 11rem - 407px)/5 + 4.5rem);
            margin: .5rem;
            overflow: hidden;
            // background: #2b2f39;
            // box-shadow: 0 2px 4px 0 rgba(0,0,0,.5);
            .ant-image{
              width: 100%;
              height: 100%;
              img{
                background: #000;
                object-fit: contain;
                width: 100%;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
              }
            }
            .add1{
              cursor: pointer;
              width: 100%;
              height: 100%;
              text-align: center;
              border: 2px dashed #dadada;
              border-radius: 5px;
              color: #dadada;
              .button{
                position: relative;
                top: 50%;
                transform: translateY(-50%);
              }
            }
            .mask{
              position: absolute;
              bottom: 0;
              left: 0;
              width: 100%;
              height: 4.5rem;
              background: rgba(0,0,0,.4);
              padding: 0 8px;
              display: flex;
              flex-direction: column;
              justify-content: center;
              align-content: center;
              .name{
                margin: 0;
                // height: 2rem;
                // line-height: 2rem;
                width: calc(100% - 3rem);
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                color: #eee;
                font-size: 1rem;
                text-align: left;
              }
              p{
                display: flex;
                margin: 0;
                height: 1rem;
                line-height: 1rem;
                color: #eee;
                font-size: .75rem;
                text-align: left;
                :first-child{
                  // margin-right: 1rem;
                  // min-width: 70px;
                  display: inline-block;
                  flex: 1;
                }
              }
              .close{
                font-size: 16px;
                position: absolute;
                top: 1rem;
                right: 1rem;
                color: #fff;
                line-height: 1.5rem;
              }
            }
          }
        }
      }
  }
}
.cycleTime{
  &::after{
    content:'（循环时间不能与其他重叠）';
    font-size: 12px;
    color: #ff4d4f;
    padding-top: 5px;
    line-height: 26px;
  }
}
.calendarList{
  :global{
    ul{
      overflow: hidden;
      width: 301px;
      margin: 0 auto;
      padding: 0;
      li{
        float: left;
        width: 43px;
        text-align: center;
        padding: 3px 0;
        span{
          width: 24px;
          height: 24px;
          line-height: 24px;
          display: inline-block;
          cursor: pointer;
        }
        &.selected{
          span{
            color: #fff;
            background: #1890ff;
          }
          
        }
        &:hover:not(.selected){
          span{
            background: #f5f5f5;
          }
          
        }
      }
    }
  }
}
.footer{
  padding-top: 24px;
  margin: 0;
  text-align: center;
}
.ProgramModel{
  :global{
    .ant-pro-table-search{
      margin-bottom: 0;
      .ant-col-10{
        flex: auto;
      }
    }
    .ant-pro-table-toolbar{
      height: auto;
      text-align: right;
      .ant-pro-table-toolbar-title{
        font-size: 12px;
        color:#ff4d4f;
      }
    }
    .ant-table-body{
      &::-webkit-scrollbar{
        width: 4px;
        height: 4px;
        background-color: transparent;
        box-shadow: 5px 5px 25px 0 rgba(217,217,217,.1);
      }
      &::-webkit-scrollbar-thumb {
          box-shadow: inset 0 0 6px rgba(217,217,217,.3);
          background-color:  rgba(217,217,217,.9);
      }
      &::-webkit-scrollbar-track {
          box-shadow: inset 0 0 6px rgba(217,217,217,.3);
          background-color: transparent;
      }
    }
  }
}
.PlanReviewModel{
  :global{
    .ant-col{
      margin: 5px 0;
    }
    .device{
      .ant-table-body{
        &::-webkit-scrollbar{
          width: 4px;
          background-color: transparent;
          box-shadow: 5px 5px 25px 0 rgba(217,217,217,.1);
        }
        &::-webkit-scrollbar-thumb {
            box-shadow: inset 0 0 6px rgba(217,217,217,.3);
            background-color:  rgba(217,217,217,.9);
        }
        &::-webkit-scrollbar-track {
            box-shadow: inset 0 0 6px rgba(217,217,217,.3);
            background-color: transparent;
        }
      }
    }
    .durantion{
      .selected{
        color: #fff;
        background-color: #1890ff;
      }
    }
  }
}
